package com.example.demo.Common.Enum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum SexType {
    male(1,"男"),
    female(2,"女"),
    helicopter(3,"直升机");


    /** 数据库存储数据 */
    @EnumValue
    private final Integer value;
    /** 显示文本 */
    @JsonValue
    private final String sex;

    SexType(Integer value, String sex) {
        this.value = value;
        this.sex = sex;
    }
}
